package top.mataiji.manager.pojo;

import java.io.Serializable;

/**
 * @author zhoubin 
 * @since 1.0.0
 */
public class BookType implements Serializable {
    /**
     * 
     */
    private Integer typeid;

    /**
     * 分类
     */
    private String type;

    /**
     * 父类
     */
    private Integer parent;

    /**
     * bookType
     */
    private static final long serialVersionUID = 1L;

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", typeid=").append(typeid);
        sb.append(", type=").append(type);
        sb.append(", parent=").append(parent);
        sb.append("]");
        return sb.toString();
    }
}